/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.mer.entity;

import org.hibernate.validator.constraints.Length;

import com.kaaction.common.persistence.DataEntity;

/**
 * 属性值Entity
 * @author huanghaiming
 * @version 2017-05-20
 */
public class AttributeValue extends DataEntity<AttributeValue> {
	
	private static final long serialVersionUID = 1L;
	private String value;		// value
	private String attributeId;		// attribute_id
	private String spuId;		// spu_id
	
	public AttributeValue() {
		super();
	}

	public AttributeValue(String id){
		super(id);
	}

	@Length(min=0, max=255, message="value长度必须介于 0 和 255 之间")
	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
	
	@Length(min=0, max=64, message="attribute_id长度必须介于 0 和 64 之间")
	public String getAttributeId() {
		return attributeId;
	}

	public void setAttributeId(String attributeId) {
		this.attributeId = attributeId;
	}
	
	@Length(min=0, max=64, message="spu_id长度必须介于 0 和 64 之间")
	public String getSpuId() {
		return spuId;
	}

	public void setSpuId(String spuId) {
		this.spuId = spuId;
	}
	
}